<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增广告主主体资质')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-subject-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主id：</label>
				<div class="col-sm-8">
					<input id="advertiserId" name="advertiserId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司名称：</label>
				<div class="col-sm-8">
					<input id="companyName" name="companyName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">对公验证类型：</label>
				<div class="col-sm-8">
					<input id="companyType" name="companyType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司类型，1企业，2个人：</label>
				<div class="col-sm-8">
					<input id="checkType" name="checkType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质类型：</label>
				<div class="col-sm-8">
					<input id="qualificationType" name="qualificationType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质编号：</label>
				<div class="col-sm-8">
					<input id="qualificationCode" name="qualificationCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册国家：</label>
				<div class="col-sm-8">
					<input id="registeredNationName" name="registeredNationName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册省份：</label>
				<div class="col-sm-8">
					<input id="registeredProvinceName" name="registeredProvinceName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册城市：</label>
				<div class="col-sm-8">
					<input id="registeredCityName" name="registeredCityName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否有有效日期：</label>
				<div class="col-sm-8">
					<input id="hasEffectiveDate" name="hasEffectiveDate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法人：</label>
				<div class="col-sm-8">
					<input id="proprietorName" name="proprietorName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">详细地址：</label>
				<div class="col-sm-8">
					<input id="address" name="address" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">拒绝理由：</label>
				<div class="col-sm-8">
					<input id="rejectReason" name="rejectReason" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质图片附件id：</label>
				<div class="col-sm-8">
					<input id="attachmentId" name="attachmentId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资质图片地址：</label>
				<div class="col-sm-8">
					<input id="pictureUrl" name="pictureUrl" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "dsp/subject"
		$("#form-subject-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-subject-add').serialize());
	        }
	    }
	</script>
</body>
</html>
